import java.util.Scanner;

public class demo4 {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		for(int i=1;i<=4;i++){
			for(int j=1;j<=5-i;i--){
				System.out.print("5 ");
			}
			System.out.print("");
			
			
			
		}
		
		
		
		
		
		
		
		
	}

}
